package anthology.daily_question._25_01;
//https://leetcode.cn/problems/convert-date-to-binary/description/?envType=daily-question&envId=2025-01-01
public class _3280将日期转换为二进制表示 {
    class Solution {
        public String convertDateToBinary(String date) {
            String[] a = date.split("-");
            for(int i=0; i<a.length; i++){
                a[i] = Integer.toBinaryString(Integer.parseInt(a[i]));
            }
            return String.join("-",a);
        }
    }
}
